package com.cxf.windex.controller;

import java.util.Map;

import com.cxf.windex.base.rest.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author chenxf
 * @date 5/11/2018
 * @description
 */
@Controller
@RequestMapping("platform")
public class PlatformController extends BaseController {
  @RequestMapping(value = "list",method = RequestMethod.GET)
  public String list(Map<String,Object> map){
    return "platform/list";
  }

  @RequestMapping(value = "unpay",method = RequestMethod.GET)
  public String unpay(Map<String,Object> map){
    return "platform/unpay";
  }

  @RequestMapping(value = "user",method = RequestMethod.GET)
  public String user(Map<String,Object> map){

    return "platform/user";
  }

  @RequestMapping(value = "seller",method = RequestMethod.GET)
  public String seller(Map<String,Object> map){
    return "platform/seller";
  }

  @RequestMapping(value = "hy",method = RequestMethod.GET)
  public String hy(Map<String,Object> map){
    map.put("userid",this.getCurrentUserId());return "platform/hy";
  }

  @RequestMapping(value = "code",method = RequestMethod.GET)
  public String code(Map<String,Object> map){
    return "platform/code";
  }

  @RequestMapping(value = "add",method = RequestMethod.GET)
  public String add(Map<String,Object> map){
    return "platform/add";
  }
}
